package com.slz3.business.module.memberManagement.drawTicket.service;

import com.slz3.business.module.memberManagement.drawTicket.domain.DrawTicket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface DrawTicketService {

    DrawTicket save(DrawTicket drawTicket);

    Page<DrawTicket> page(MultiValueMap<String,String> queryParams);

    DrawTicket modify(DrawTicket drawTicket);

    Optional<DrawTicket> single(UUID uuid);

    List<DrawTicket> findAllByUuids(Iterable<UUID> uuids);

    List<DrawTicket> delete(List<DrawTicket> drawTicketList);

}
